package com.kgc.cgapi.pojo;


import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.kgc.basic.annotation.PdfFieldMapping;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class PurchaseInvoiceDetail implements Serializable {

    @ExcelIgnore
    private Integer id;

    @ExcelProperty("关联销售发票编号")
    private String invoiceCode;

    @ExcelProperty("商品id")
    private Integer goodId;

    @ExcelProperty("商品名称")
    @PdfFieldMapping(templateField = "fill_1")
    private String goodName;

//    @PdfFieldMapping(templateField = "fill_3")
    private Integer quantity;

    @PdfFieldMapping(templateField = "fill_2")
    private BigDecimal invoicingQuantity;

    @PdfFieldMapping(templateField = "fill_3")
    private BigDecimal invoicingAmount;

    @PdfFieldMapping(templateField = "fill_4")
    private Integer tax;

    @ExcelProperty("备注")
    private String notes;
    @ExcelIgnore
    private String createBy;
    @ExcelIgnore
    private Date createTime;
    @ExcelIgnore
    private String updateBy;
    @ExcelIgnore
    private Date updateTime;

    @ExcelIgnore
    private Integer isDelete;
    @ExcelProperty("仓库id")
    private Integer warehouseId;
    @ExcelProperty("仓库名称")
    private String warehouseName;

}
